<?php

$form = f()->users()->role_form('add');
	
if ($form->submitted()) {
	$fields = array('id','description');
	$o = f()->users()->role();
	$form->load();
	$form->save($o,$fields);
	$o->save();
	$this->redirect('@user/roles');
} else {
	$form->render();
}
